import baseConfig from './vite.config.base'
import { ConfigEnv, UserConfig } from 'vite'

export default ({ command, mode }: ConfigEnv): UserConfig => ({
  ...baseConfig({ command, mode }),
  ...{
    mode: 'dev',
    server: {
      open: true,
      fs: {
        strict: true,
      },
      host: '0.0.0.0',
      port: 14080,
    },
  },
})
